package com.hello.pet.service.system.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hello.pet.common.enums.StatusEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 菜单权限表
 * </p>
 *
 * @author hello
 * @since 2022-04-21
 */
@TableName("sys_menu_permissions")
@ApiModel(value = "MenuPermissions对象", description = "菜单权限表")
public class MenuPermissions implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty("是否删除  0-未删除  1-删除")
    private Integer isDelete;

    @ApiModelProperty("乐观锁")
    private Integer jpa;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty("创建人")
    private String createBy;

    @ApiModelProperty("更新人")
    private String updateBy;

    @ApiModelProperty("菜单名称")
    private String name;

    @ApiModelProperty("菜单描述")
    private String describe;

    @ApiModelProperty("所属模块")
    private String module;

    @ApiModelProperty("父节点id")
    private String parentNodelId;

    @ApiModelProperty("路径")
    private String path;

    @ApiModelProperty("状态")
    private StatusEnum state;

    @ApiModelProperty("http地址")
    private String address;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public Integer getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }
    public Integer getJpa() {
        return jpa;
    }

    public void setJpa(Integer jpa) {
        this.jpa = jpa;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }
    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }
    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }
    public String getModule() {
        return module;
    }

    public void setModule(String module) {
        this.module = module;
    }
    public String getParentNodelId() {
        return parentNodelId;
    }

    public void setParentNodelId(String parentNodelId) {
        this.parentNodelId = parentNodelId;
    }
    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }
    public StatusEnum getState() {
        return state;
    }

    public void setState(StatusEnum state) {
        this.state = state;
    }
    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    @Override
    public String toString() {
        return "MenuPermissions{" +
            "id=" + id +
            ", isDelete=" + isDelete +
            ", jpa=" + jpa +
            ", createTime=" + createTime +
            ", updateTime=" + updateTime +
            ", createBy=" + createBy +
            ", updateBy=" + updateBy +
            ", name=" + name +
            ", describe=" + describe +
            ", module=" + module +
            ", parentNodelId=" + parentNodelId +
            ", path=" + path +
            ", state=" + state +
            ", address=" + address +
        "}";
    }
}
